#include"stdio.h"
typedef unsigned char *byte_pointer;

void show_bytes(byte_pointer start,int len)
  {
    int i;
    for(i=0;i<len;i++)
         {
            printf("%.2x",start[i]);
         }
printf("\n");
}

void main()
{
   int a,b;
   printf("please input a number:\n");
   scanf("%d",&a);
   b=!(~a);
   printf("%d\n",b);
   show_bytes((byte_pointer)&a,sizeof(int));
   show_bytes((byte_pointer)&b,sizeof(int));
}

